<?php 
if(!($this->session->userdata('lang')))
{
	$this->session->set_userdata('lang','russian');
}
$this->lang->load('static', $this->session->userdata('lang'));

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>RusTmarket.com</title>

        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

        <link rel="stylesheet" type="text/css" media="screen" href="/css/admin_style.css" />

        <link rel="stylesheet" type="text/css" media="screen" href="/js/jquery/jquery-ui/css/smoothness/jquery-ui-1.8.16.custom.css" />
        <link rel="stylesheet" type="text/css" media="screen" href="/js/jquery/jqGrid/css/ui.jqgrid.css" />
		<script type="text/javascript" src="/js/jquery/jqGrid/js/jquery-1.6.2.js" type="text/javascript"></script>
        <script type="text/javascript" src="/js/jquery/jqGrid/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
      
        <script src="/js/jquery/jqGrid/js/i18n/grid.locale-ru.js" type="text/javascript"></script>
        <script src="/js/jquery/jqGrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
		<script src="/js/jquery/jqGrid/plugins/jquery.mwindow.js" type="text/javascript"></script>
		<script src="/js/bubble.js" type="text/javascript"></script>
		<script src="/js/head.js" type="text/javascript"></script>


    </head>
    <body>
    <div class=language>
    	<div value=russian class="lang ru"></div>
     	<div value=english class="lang us"></div>
    </div>
    <div id='wherewearenow' link='<?php echo $where?>'></div>
	<div id="bgHeadLine">
        <div id="divNavi">
       <!--   <div class='galstuk'></div>--> 
       <div class='logo'></div> 
        
        	<div id=headmenu>
        		<div class='elementMenu admin'  link="/admin/">
        			<div>
        			<div>
        				<span class='spanelement' >
        					<?php echo lang('services');?>
        				</span>
        				</div>
        			</div>
        		</div>
        		<div class='elementMenu userlist'  link="/admin/clients/<?php echo $this->session->userdata('userType');?>">
        			<div><div>
        				<span class='spanelement'>
        					<?php echo lang('users');?>
        				</span>
        			</div></div>
        		</div>
        		<?php if($this->session->userdata('userType')==2){?> 
        		<div class='elementMenu register' link="/admin/register/">
        			<div><div>
        				<span class='spanelement'>
        					<?php echo lang('register');?>
        				</span>
        			</div></div>
        		</div>
        		<?php }?>
        		<?php if(isset($userlist)){?>
        		<div class='elementMenu' link="#">
        			<div><div>
        				<span class='spanelement'>
        					<?php echo $userlist; ?>
        				</span>
        			</div></div>
        		</div>
        		 <?php }
              	 ?> 
        	
        		<div class='elementMenu orders' link="/admin/orders/<?php echo $this->session->userdata('userType'); ?>">
        			<div>
        			<div>
        				<span class='spanelement' >
        					<?php echo lang('orders');?>
        				</span>
        				</div>
        			</div>
        		</div>
        		<div class='elementMenu mfoto' link="/admin/foto/">
        			<div>
        			<div>
        				<span class='spanelement' >
        					<?php echo lang('photos');?>
        				</span>
        				</div>
        			</div>
        		</div>
        		<div class='elementMenu' link="/admin/logout/">
        			<div>
	        			<div>
	        				<span class='spanelement' >
	        					<?php echo lang('exit');?>
	        				</span>
	        			</div>
        			</div>
        		</div>
        	</div>
        </div>
	</div>
	
<!-- <center><h1><font color="#f00">НИЧЕГО НЕ ВНОСИТЬ!!!!! НИЧЕ НЕ РАБОТАЕТ!!!!</font></h1></center>
	 <center><h1><font color="#f00">В 18:00 заблокирую админку. Торопитесь!:)</font></h1></center>
		 -->	

        <div id="divContent">